//
// Created by Administrator on 2017/11/27 0027.
//

#ifndef NDKMASTER_ED_MD5HEADER_H
#define NDKMASTER_ED_MD5HEADER_H

#include "base.h"

unsigned char * getKey(JNIEnv *env, jstring key);

jstring raw_md5(JNIEnv *env,jobject clazz, jstring);

jstring raw_sha1(JNIEnv *env,jobject clazz, jstring);

jstring raw_aesEcbEncrypt(JNIEnv *env,jobject clazz,jstring, jstring);
jstring raw_aesEcbDecrypt(JNIEnv *env,jobject clazz,jstring, jstring);

jstring raw_aesCbcEncrypt(JNIEnv *env,jobject clazz,jstring iv, jstring key, jstring str_);
jstring raw_aesCbcDecrypt(JNIEnv *env,jobject clazz,jstring iv, jstring key, jstring str_);

/***
 * 获取签名
 * @return
 */
jstring raw_getSign(JNIEnv *,jobject, jobject);

jstring GetSignature(JNIEnv *env, jobject thiz, jobject context);

jstring charToString(JNIEnv *envPtr, const char * const src);

char* String2ByteArr(JNIEnv *, jobject clazz, jstring);

jint WriteStringToFile(JNIEnv *, jobject clazz, jstring, jstring);

jstring ReadStringFromFile(JNIEnv *, jobject clazz, jstring);

#endif //NDKMASTER_ED_MD5HEADER_H
